<?php

/**
 * Class: Account_IndexController
 * @author ovo
 * 
 */
class Account_IndexController extends Zend_Controller_Action{
	
	protected $auth;
	public function init() {
		
			 $this->auth = Zend_Auth::getInstance()->getIdentity();
		
		
	}
	
	public function indexAction() {
		
	 $user =  $this->auth->username;
	 $id = $this->auth->id;
	 $this->view->message = "Welcome $user";
	 $this->view->id = $id;
	}
	
	public function myratingsAction(){
		
		$this->view->headTitle("My Ratings", 'PREPEND');
		$db = new Account_Model_DbTable_myratings();
		$this->view->data= $db->getUserRatings($this->auth->id);	
	}
	
}
